/* jshint esversion: 6 */
const getButtonList = async () => {
    const portUrl = './MyActiveService.json';
    let ports = {};
    try {
        ports = await (await fetch(portUrl)).json();
    } catch {}
    return [
        { href: './testproject/', name: 'testproject' },
        { href: './tttttt/', name: 'tttttt' },
        { href: `http://${location.hostname}:${ports['jupyter-lab'] || '--'}/`, name: 'jupyter-lab' },
        { href: './index_b.php', name: 'Apache Default' },
        { href: './Download/', name: '可下载文件' },
        { href: './UploadFiles', name: '已上传文件' },
        { href: './UploadFiles/upload.php', name: '上传' },
        { href: './testproject/testFile/form_test/', name: '表单测试' },
        { href: `http://${location.hostname}:${ports['pydoc'] || '--'}/`, name: 'pyDoc' },
        { href: './Plug-Ins/', name: '插件' },
        { href: './Plug-Ins/BootStrap/', name: 'BootStrap' },
        { href: './testproject/Project/PureScript/HTML/样例/', name: '样例' }
    ];
};
export { getButtonList };
